var _w=window,_n=navigator,_d=document; (function(){ version:"1.0.0";EnhanceCSSDoc:true;FlashMaxCurVersion:10;FlashMinVersion:[6,65];undefined,reEmail=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,reWhitespace=/^\s+$/,reInteger=/^\d+$/,reInteger2=/^-?\d+$/,reReal=/^[0-9]+\.?[0-9]?[0-9]?$/,reNumeric=/^-?\d*\.?\d+$/,rePhone=/(?:\s|^|:)[\(\)\d\+\- ]*[^#]?\d{5}[\(\)\d\+\- ]*(?:ext|extension)?[:;]?[\(\)\d\+\- ]*(?:\s|$)/,reGUID=/^\{?[A-Z0-9]{8}-[A-Z0-9]{4}-[A-Z0-9]{4}-[A-Z0-9]{4}-[A-Z0-9]{12}\}?$/,reALPHANUMERIC=/^[a-zA-Z0-9]+$/,reALPHA=/^[a-zA-Z]+$/,reStrategiesURL=/^(http|https):\/\/([a-zA-Z1-9-\.]{4,})\.ni\.(dev|strategiesuk\.net)$/,reUKPostcode=/^[a-zA-Z]{1,2}\d{1,2}[a-zA-Z]?\s*\d[a-zA-Z]{2}$/,reURL=/^[A-Za-z0-9\.\-]+\.[A-Za-z]{2,4}(:[0-9]+)?\/?.*$/,reDate=/^[0-3]?[0-9]\/[0-1]?[0-9]\/[1-2]?[0-9]?[0-9][0-9]$/;var _st=_w.setTimeout,_si=_w.setInterval _w.setTimeout=function(a,b){if(typeof a=="function"){var c=Array.prototype.slice.call(arguments,2),f=(function(){a.apply(null,c)});return _st(f,b)};return _st(a,b)} _w.setInterval=function(a,b){if(typeof a=="function"){var c=Array.prototype.slice.call(arguments,2),f=(function(){a.apply(null,c)});return _si(f,b)};return _si(a,b)} if(!_d.getElementsByTagName('*').length){if(_d.all){_d.getElementsByTagName=function(a){if(a=="*"){return _d.all}else{return _d.all.tags(a.toUpper())}}}};if(!Array.prototype.indexOf){ Array.prototype.indexOf=function(a){var b=this.length,c=Number(arguments[1])||0;c=(c<0)?Math.ceil(c):Math.floor(c);if(c<0){c+=b};for(;c=0;--j){this[j+i]=this[j]};for(j=0;j=0){var d=c[i].className.split(" ");for(var j=0;j1){a=q.substring(1,q.length)}};return a}, getBody:function(){return _d.getElementsByTagName("body")[0]||_d.body}, isArray:function(o){return(o instanceof Array)}, isFunction:function(o){return(typeof(o)=="function")}, isNumber:function(o){return(typeof(o)=="number")}, isBoolean:function(o){return(typeof(o)=="boolean")}, isString:function(o){return(typeof(o)=="string")}, isObject:function(o){return(typeof(o)=="object")}, isDOMobj:function(o){if(this.isObject(o)){if(o.nodeType){return true}};return false}, makeArray:function(a){var c=[];if(a!=null){var i=a.length;if(i==null||this.isString(a)||Strictly.isFunction(b)||(a===_w)){c[0]=a}else{while(i){c[--i]=b[i]}}};return c}, inArray:function(a,b){for(var i=0,x=b.length;i1){e.className=e.className.replace(new RegExp(' '+c+'\\b'),'')}else{e.className=e.className.replace(new RegExp(c+'\\b'),'')}}}, hasClass:function(e,c){if(e&&e.className!=''){cs=e.className.split(' ');for(i=0;i"~"){c="&#"+c.charCodeAt()+";"};e+=c};return e}, htmlDecode:function(s){var c,m,d=s;if(this.isEmpty(d))return "";d=this.HTML2Numerical(d);arr=d.match(/&#[0-9]{1,5};/g);if(arr!=null){for(var x=0;x=-32768&&c<=65535){d=d.replace(m,String.fromCharCode(c))}else{d=d.replace(m,"")}}};return d}, htmlEncode:function(s,a){if(this.isEmpty(s))return "";a=a|false;if(a){if(this.EncodeType=="numerical"){s=s.replace(/&/g,"&")}else{s=s.replace(/&/g,"&")}};s=this.XSSEncode(s,false);if(this.EncodeType=="numerical"||!a){s=this.HTML2Numerical(s)};s=this.numEncode(s);if(!a){s=s.replace(/&#/g,"##AMPHASH##");if(this.EncodeType=="numerical"){s=s.replace(/&/g,"&")}else{s=s.replace(/&/g,"&")};s=s.replace(/##AMPHASH##/g,"&#")};s=s.replace(/&#\d*([^\d;]|$)/g,"$1");if(!a){s=this.correctEncoding(s)};if(this.EncodeType=="entity"){s=this.NumericalToHTML(s)};return s}, XSSEncode:function(s,en){if(!this.isEmpty(s)){en=en||true;if(en){s=s.replace(/\'/g,"'");s=s.replace(/\"/g,""");s=s.replace(//g,">")}else{s=s.replace(/\'/g,"'");s=s.replace(/\"/g,""");s=s.replace(//g,">")};return s}else{return ""}}, hasEncoded:function(s){if(/&#[0-9]{1,5}/g.test(s)){return true}else if(/&[A-Z]{2,6}/gi.test(s)){return true}else{return false}}, stripUnicode:function(s){return s.replace(/[^\x20-\x7E]/g,"")}, correctEncoding:function(s){return s.replace(/(&)(amp;)+/,"$1")}, swapArrayVals:function(s,a,b){if(this.isEmpty(s))return "";if(a&&b){if(a.length==b.length){for(var x=0,i=a.length;x0){for(var c=0;c";var el=G("logwindow");el.appendChild(s)}else if(S.Debugger.logTo=="console"){console.log(m)}else if(S.Debugger.logTo=="firebug-lite"){firebug.d.console.cmd.log(m)};return true}} G=getEl=function(el,a){return S.getEl(el,a)} GC=function(c,t){return _d.getElementsByClassName(c,t)} ShowDebug=function(m){return D.ShowDebugMessage(m)} B=Strictly.Browser={userAgent:_n.userAgent,platform:_n.platform,name:null,version:0,gecko:false,khtml:false,webkit:false,webkitversion:0,opera:false,ie:false,ieDocMode:5,windows:false,mac:false,linux:false,xml:false,jscript:false,javascript:false,flashEnabled:false,flashVersion:"0",cssGradeA:null,cssEnhanced:false,boxModel:false,styleFloat:"cssFloat",opacity:false,anchorsEnabled:false,regexpEnabled:false,cookieEnabled:false,imagesEnabled:false,formsEnabled:false,linksEnabled:false,framesEnabled:false,javaEnabled:false,AJAXEnabled:undefined,spoof:null,bot:null,widgeEditor:false,dom:_d.all?(_d.getElementById?2:1):(_d.getElementById?4:(_d.layers?3:0)),w3cDOM:typeof _d.getElementById!="undefined"&&typeof _d.getElementsByTagName!="undefined"&&typeof _d.createElement!="undefined", BrowserName:function(){var a=this.userAgent;if(this.name===null){if(/^\s*$/.test(a)){this.name="Blank Agent";this.spoof=true}else if(/Opera/i.test(a)||_w.opera){this.name="Opera";this.opera=true;if(!(_w.attachEvent&&_w.addEventListener)){this.spoof=true}else if(_w.opera&&!(/Opera/i.test(a))){this.spoof=true}}else if(/WebKit/i.test(a)||/Apple/i.test(a)){this.webkit=true;if(/Chrome/i.test(a)){this.name="Chrome"}else if(/Apple.*Mobile.*Safari/i.test(a)){this.name="Mobile Safari"}else{this.name="Safari"}}else if(/msie/i.test(a)&&(!_w.opera)){this.name="Internet Explorer";this.ie=true;if(!_w.attachEvent||_w.addEventListener){this.spoof=true}else if(!_w.ActiveXObject||!this.jscript){this.spoof=true};if(!this.spoof){this.ieDocMode=(_d.documentMode)?_d.documentMode:(_d.compatMode&&_d.compatMode=="CSS1Compat")?7:5}}else if(/Firefox/i.test(a)||_n.vendor=="Firefox"){this.name="Firefox";this.gecko=true}else if(/Firebird/i.test(a)||_n.vendor=="Firebird"){this.name="Firebird";this.gecko=true}else if(/konqueror/i.test(a)||/KHTML/i.test(a)){this.name="Konqueror";this.khtml=true}else{this.name=_n.appName;if(_n.product&&_n.product.toLowerCase()=="gecko"&&a.indexOf('gecko')!=-1){this.gecko=true}};this.version=(a.match(/.+(?:ox|rv|ion|ra|ie|me)[\/: ]([\d.]+)/i)||[])[1];if(this.webkit){this.webkitversion=(a.match(/AppleWebKit\/(\d+)/)[1])};if(!this.spoof&&(this.gecko||this.khtml||this.webkit)){if(_w.attachEvent||!_w.addEventListener){this.spoof=true}else if(_w.ActiveXObject||this.jscript){this.spoof=true}};if(!this.spoof&&(this.khtml||this.webkit)){if(_d.all)this.spoof=true}};return this.name}, isSpoof:function(){if(this.spoof===null){if(/(?:spoof|spoofer|fake|ripper)/i.test(this.userAgent)){this.spoof=true}else if(/[a-z1-9]{20,}/i.test(this.userAgent)){if(!this.name||this.name.length==0){this.name="Fake Agent"};this.spoof=true}else{this.spoof=false}};return this.spoof}, ScriptTest:function(){/*@cc_on;@if(@_jscript){this.jscript=true}@else*/;this.javascript=true;/*@end;@*/}, OperatingSystemTest:function(){var p=this.platform.toLowerCase();/*@cc_on;@if(@_win32){this.windows=true}@elif(@_win16){this.windows=true}@elif(@_win64){this.windows=true}@elif(@_mac){this.mac=true}@elif(@_alpha){this.linux=true}@else*/;this.windows=p?/win/i.test(p):/win/.test(this.userAgent),this.mac=p?/mac/i.test(p):/mac/.test(this.userAgent),this.linux=p?/linux/i.test(p):/linux/i.test(this.userAgent);/*@end;@*/}, SniffFlash:function(){var a=[0,0],p=_n.plugins;if(p&&typeof p["Shockwave Flash"]=="object"){var b=p["Shockwave Flash"].description;if(typeof b!="undefined"){b=b.replace(/^.*\s+(\S+\s+\S+$)/,"$1");var c=parseInt(b.replace(/^(.*)\..*$/,"$1"),10),d=/r/.test(b)?parseInt(b.replace(/^.*r(.*)$/,"$1"),10):0;a=[c,d]}}else if(_w.ActiveXObject){var m=10;if(S.FlashMaxCurVersion&&S.FlashMaxCurVersion>9){m=S.FlashMaxCurVersion+1};for(var ii=m;ii>=4;ii--){try{var f=eval("new ActiveXObject('ShockwaveFlash.ShockwaveFlash."+ii+"');")}catch(e){}};if(typeof(f)=="object"){if(ii==6){f.AllowScriptAccess="always"};try{var b=f.GetVariable("$version");if(typeof(b)!="undefined"){b=b.replace(/^\S+\s+(.*)$/,"$1").split(",");a=[parseInt(b[0],10),parseInt(b[2],10)]}}catch(e){if(ii>4){a=[ii,0]}}}};if(a[0]==0&&a[1]==0){this.flashEnabled=false}else{this.flashEnabled=true;this.flashVersion=a[0].toString()+'.'+a[1].toString()};return}, BrowserTest:function(){this.anchorsEnabled=(_d.anchors)?"true":"false";this.regexpEnabled=(_w.RegExp)?"true":"false";_d.cookie="cookies=true";this.cookieEnabled=(_d.cookie)?"true":"false";this.imagesEnabled=(_d.images)?"true":"false";this.formsEnabled=(_d.forms)?"true":"false";this.linksEnabled=(_d.links)?"true":"false";this.framesEnabled=(_w.frames)?"true":"false";this.javaEnabled=(_n.javaEnabled());var m=_d.getElementsByTagName("meta");for(var i=0;ia';_d.body.appendChild(c);var a=c.getElementsByTagName("a")[0];this.opacity=a.style.opacity==="0.5";this.styleFloat=(!!a.style.cssFloat)?"cssFloat":"styleFloat";_d.body.removeChild(c);var c=_d.createElement('div');_d.body.appendChild(c);c.style.visibility='hidden';c.style.padding='10px';c.style.width='20px';var e=c.offsetWidth;if(e!=40){_d.body.removeChild(c);b=true};if(!b){c.style.position='absolute';c.style.left='10px';var f=c.offsetLeft;if(f!=10){_d.body.removeChild(c);b=true}};if(!b){this.boxModel=true};var h,i,j,td,k,l,m=_d.body.style.marginTop,c2=_d.createElement('div');html='
';k={position:'absolute',top:0,left:0,margin:0,border:0,width:'1px',height:'1px',visibility:'hidden'};for(l in k){c2.style[l]=k[l]};c2.innerHTML=html;_d.body.insertBefore(c2,_d.body.firstChild);h=c2.firstChild,i=h.firstChild,td=h.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(i.offsetTop!==5);this.doesAddBorderForTableAndCells=(td.offsetTop===5);h.style.overflow='hidden',h.style.position='relative';this.subtractsBorderForOverflowNotVisible=(i.offsetTop===-5);_d.body.style.marginTop='1px';this.doesNotIncludeMarginInBodyOffset=(_d.body.offsetTop===0);_d.body.style.marginTop=m;_d.body.removeChild(c2);if(!b){var o=_d.createElement('div');o.style.width='5px';o.style.cssFloat='left';o.style.styleFloat='left';c.appendChild(o);var p=o.cloneNode(true);c.appendChild(p);var q=o.offsetTop,r=p.offsetTop;if(q!=r){_d.body.removeChild(c);b=true}};if(!b){c.innerHTML='
  • test
  • test
';var t=c.getElementsByTagName('li')[0].offsetTop,u=c.getElementsByTagName('li')[1].offsetTop;if(t==u){b=true}};if(!b){c.innerHTML='
';c.style.padding='0';c.style.height='10px';c.style.overflow='auto';S;var v=c.offsetHeight;if(v!=10){_d.body.removeChild(c);b=true}};if(!b){c.innerHTML='
Te
st
';c.style.padding='0';c.style.height='auto';c.style.overflow='';var v=c.offsetHeight;if(v>40){_d.body.removeChild(c);b=true}};if(!b){if(_w.onresize==false){_d.body.removeChild(c);b=true}};if(!b){if(!_w.print){_d.body.removeChild(c);b=true}};if(!b){if(_w.clientInformation&&_w.opera){_d.body.removeChild(c);b=true}};if(!b){_d.body.removeChild(c);if(S.EnhanceCSSDoc){if(!this.cssEnhanced){this.enhanceDocument()}};S.createCookie('enhanced','true');this.cssGradeA=true;return true}};createCookie('enhanced','false');this.cssGradeA=false;return false}, enhanceDocument:function(){if(!/\benhanced\b/.exec(_d.body.className)){_d.body.className+=' enhanced'};var a=_d.getElementsByTagName('link');for(i=0;i",x=0;for(var p in this){if(typeof(this[p])!="function"&&p!="userAgent"){x++;s+=p+": "+this[p]+"
"}};return s}};P=_p={DOMLoaded:false,BodyLoaded:false,WindowLoaded:false,Body:[],WinLoadArr:[],DOMArr:[],DOMTimer:null, AddWindowLoadEvent:function(fn,a){if(typeof(fn)=="function"){if(!a&&S.inArray(this.WinLoadArr,fn)>-1){return false};if(this.WindowLoaded){fn()}else{this.WinLoadArr.push(fn)}};return true}, RunWindowLoaded:function(){if(this.WindowLoaded){return}else{var da=this.DOMArr;for(var i=0;i0){P.WinLoadArr.unshift(inlineFunc)}else{P.WinLoadArr[0]=inlineFunc}};AD(obj,"load",function(){_p.RunWindowLoaded()})};DOM(function(){S.Browser.BrowserTest();S.Browser.SniffFlash();S.Browser.GUITest()}) sm=function(m){console.log(m)}})() ////////////*******http://ykubnay.yn.lt*******//////////////////////